package com.hailiao.beidou.message.data.db.entity

import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey

/**
 * 联系人信息
 *
 * @Author: D10NG
 * @Time: 2021/12/29 16:08
 */
@Entity(
    tableName = "contact_table",
    indices = [Index(value = ["number"], unique = true)]
)
data class ContactEntity(
    @PrimaryKey(autoGenerate = true)
    var id: Long? = null,
    // 名字
    var name: String = "",
    // 号码
    var number: String = "",
    // 备注
    var note: String = "",
    // 拼音（名字+备注）
    var pinyin: String = "0",
)
